Should you hand - code validation routines that perform bounds checking 您需要自己編寫一些驗(yàn)證例程來(lái)進(jìn)行邊界檢查么?
It also performs bounds checking and eliminates indirect object access , even under error conditions 也執(zhí)行數(shù)組維度檢查和消除間接對(duì)象訪問(wèn),甚至在錯(cuò)誤的條件下。
In some cases , unsafe code may increase an application s performance by removing array bounds checks 在某些情況下,通過(guò)移除數(shù)組界限檢查,不安全代碼可提高應(yīng)用程序的性能。
The parent class of all application settings classes , exposes four events to enable such bounds checking 是所有應(yīng)用程序設(shè)置類的父類,它公開四個(gè)事件用于啟用這樣的界限檢查。
Define the event handler , and write the code inside of it to perform bounds checking on the birth date 定義事件處理程序,并在該事件處理程序中編寫代碼,以便對(duì)出生日期執(zhí)行邊界檢查。
A less drastic measure is to get a compiler that will perform array bounds checking for c programs . such a tool exists for gcc 這僅僅取決于您希望系統(tǒng)有多大的容忍度以及為獲得這種容忍度您所愿意承受的性能影響。
The procedures were written under the assumption that you have already created your application settings ; in this example , we will perform bounds checking on a setting named 這些過(guò)程是在假定已創(chuàng)建應(yīng)用程序設(shè)置的情況下編寫的;在此示例中,我們將對(duì)名為
It s too bad that c and c don t do bounds checking automatically , but there is actually a good reason why they don t . the price of bounds checking is efficiency 有一篇論文論述了“ sitar :用于分布式服務(wù)的可伸縮侵入容忍性( intrusion - tolerant )體系結(jié)構(gòu)” ,其核心是兩個(gè)一般性概念。
One of the most significant aspects is that the combination of strict type checks , array bounds checking , and automatic garbage collection thoroughly blocks the most destructive forms of server code vulnerabilities : buffer overruns , double - release errors , and rogue pointers 最顯著的方面之一是嚴(yán)格的類型檢查、數(shù)組邊界檢查和自動(dòng)垃圾收集的組合徹底防止了最具破壞性形式的服務(wù)器代碼攻擊:緩沖區(qū)溢出、重復(fù)釋放的錯(cuò)誤和游離的指針。
百科解釋
In computer programming, bounds checking is any method of detecting whether a variable is within some bounds before its use. It is particularly relevant to a variable used as an index into an array to ensure its value lies within the bounds of the array.